<?php 
if(!isset($_GET['p']))
{
?>
<form action="view.php" method="get">
Name of file to template ("base.php", "foo.html"):<input type="text" name="p" />
<button type="submit">Template</button>
</form>
<?php
}
else
{

$page = $_GET['p'];

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta content="en-us" http-equiv="Content-Language">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<title>Black Hills Power: Power Outage Management System</title>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="iefix/ie7hack.css">
<![endif]-->
<link rel="stylesheet" type="text/css" href="maintheme.css" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="menu/mainmenu.js"></script>

<?php 
//Include special css requirements for this page
?>
<!--<link rel="stylesheet" type="text/css" href="contentstyle/maincontenttheme.css" /> -->
</head>

<body >

<div id="main">
<div id="maincenter">
<a href="index.php">
<div id="banner">
<div id="bannerimage"></div>
</div>
</a>
<div style="padding:10px;">
	<?php include($page);?>
</div>


</div> <!-- Div center main -->
</div> <!-- Main -->
</body>

</html>
<?php } ?>
